//
//  HYHomeFolderModel.m
//  XPlayer
//
//  Created by liguoqing on 2023/9/7.
//

#import "HYHomeFolderModel.h"

@implementation HYHomeFolderModel

+ (NSDictionary *)JSONKeyPathsByPropertyKey{
    return nil;
}

#pragma mark - LKDBHelper

+ (NSString *)getTableName{
    return @"FOLDERLIST";
}

+ (NSString *)getPrimaryKey{
    return @"_id";
}

#pragma mark - DB Mapping

//! 数据库字段映射，key为数据库字段，value为属性
+ (NSDictionary *)tableMapping{
    return @{
        @"_id": @"_id",
        @"folderType":@"folderType",
        @"folderLocation":@"folderLocation",
        @"folderIdentification":@"folderIdentification",
        @"folderName":@"folderName",
        @"fileCount":@"fileCount",
        @"createDate":@"createDate",
        @"isLock":@"isLock"
    };
}

+ (void)clearAllData
{
    [self deleteWithWhere:@"1"];
}

@end
